package com.fan.controller;

import com.fan.entity.Label;
import com.fan.service.Impl.LabelServiceImpl;
import com.fan.utils.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class LabelController {

    @Autowired
    LabelServiceImpl labelService;

    @GetMapping("/queryAllLabel")
    public AjaxResult queryAllLabel() {
        List<Label> list = labelService.queryAllLabel();
        return AjaxResult.success("操作成功",list);
    }

}
